Linux services
Linux Essential Services:
Syntax of Starting Services:
-sudo systemctl enable [service] => enable service on boot
-sudo systemctl disable [service] => disable service on boot
-sudo systemctl start [service] => start the service
-sudo systemctl stop [service] => stop the service
-sudo systemctl restart [service] => reset the service
-sudo systemctl status [service] => view the status of the service
1. hosting Apache server to host Files/Webpages ex: Fishing web page Demo
sudo service apache2 start
sudo service apache2 stop
file path for the webpage to add your html-code : /var/www/html/
python3 -m http.server --> host a server on the directory you are in.
use cases
-its usefull to download files to your host machine if u are using a vm.
2. SSH service : Secure Shell
- example use case: access my server via SSH
-sudo systemctl enable sshd
-sudo systemctl disable sshd
-sudo systemctl start sshd
-sudo systemctl stop sshd
-sudo systemctl restart sshd
-sudo systemctl status sshd
3. python3 HTTP. Server and UPDOG:
Better Directory share than python3 -m http.server: UPDOG
- Updog GitHub repo of python based webpage that hosts a directory for convenient for filesharing with better
UI. - But
python3model is Faster to setuppython3 -m http.server.
pipx install updog
updog --help or -h